
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE SearchDepartment
	@companyNo numeric(2,0)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	SELECT	DEPARTMENT.DEPARTMENT_NO,
			DEPARTMENT.DEPARTMENT_NAME
	FROM	DEPARTMENT
	WHERE	DEPARTMENT.COMPANY_NO = @companyNo
END
GO
